package com.example.swagger2.test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotNull;

@Data
@Slf4j
//@NoArgsConstructor
//@RequiredArgsConstructor
@AllArgsConstructor
public class Person {
    private final String name;
    @NotNull
    private Integer age = 0;
    private Integer age2;

    public static void main(String[] args) {
        Person steven = new Person("name", null, 13);
        log.info("{}", steven);
    }
}


